<?php
    /**
     * dinh nghia cac const dung chung
     **/    
    defined('__MODEL') || define('__MODEL','models');
    defined('__CONTROLLER') || define('__CONTROLLER','controllers');
    defined('__VIEW') || define('__VIEW','views');
    define("__HOST",'localhost');
    define('__DB_NAME','dulich');
    define('__USER_NAME','root');
    define('__PASSWORD','');
    
    //
    //include connect
    //
    require_once('conn.php');
    /**
     * include thu vien cua srmarty va khoi tao doi tuong cua no
     * */
    /*require_once 'library/Smarty.class.php';
    $sm = new Smarty();
    $sm->allow_php_tag = true;
    
    $sm->temlate_dir = 'views';
    */
    /**
     * include file router và khoi tao object cua no
     * */
    require_once 'public/includes/router.php';
    $rt = new ph_Router();
    $rt->setPath(__SITE_PATH.'/controllers');

    

?>